package com.etc.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.etc.entity.Orders;
import com.etc.entity.User;
import com.etc.util.PageData;

public interface OrderService {
	boolean deleteByPrimaryKey(Integer orderId);

	boolean insert(Orders record);

	boolean insertSelective(Orders record);

	Orders selectByPrimaryKey(Integer orderId);

	boolean updateByPrimaryKeySelective(Orders record);

	boolean updateByPrimaryKey(Orders record);

	PageData<Orders> selectAllByPage(@Param("page") int page, @Param("pageSize") int pageSize,
                                     @Param("content") String content);

	// 分页加模糊查询
	PageData<Orders> selectByPage(int page, int limit, String content, int userId);
}
